None 2020-09-12-test2

Is this nice?

In [15]:
import pandas as pd
import cufflinks as cf
import numpy as np
import yfinance as yf
display("text/html", "<style>.container { width:100% !important; }</style>")

cf.set_config_file(theme='pearl', world_readable=False)
cf.go_offline()
single_stock = yf.download('msft', start="2020-05-27", end="2021-05-27")

single_stock.head()
'text/html'
'<style>.container { width:100% !important; }</style>'
[*********************100%***********************]  1 of 1 completed
Out[15]:
Open High Low Close Adj Close Volume
Date
2020-05-27 180.199997 181.990005 176.600006 181.809998 178.608078 39517100
2020-05-28 180.740005 184.149994 180.380005 181.399994 178.205292 33810200
2020-05-29 182.729996 184.270004 180.410004 183.250000 180.022690 42130400
2020-06-01 182.539993 183.000000 181.460007 182.830002 179.610107 22622400
2020-06-02 184.250000 185.000000 181.350006 184.910004 181.653458 30794600
In [17]:
single_stock['Adj Close'].iplot(title='MSFT Adjusted Close', colors=['red'])

This is an example of an article writen on jupyter notebooks

In [22]:
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
from plotly.graph_objs import Scatter, Figure, Layout
import plotly
import plotly.graph_objs as go
init_notebook_mode(connected=False)
import json
import numpy as np
import pandas as pd
In [23]:
N = 1000
random_x = np.random.randn(N)
random_y = np.random.randn(N)

# Create a trace
trace = go.Scatter(
    x = random_x,
    y = random_y,
    mode = 'markers'
)

data = [trace]

layout = go.Layout(
    autosize=False,
    width=500,
    height=500,
    margin=go.Margin(
        l=20,
        r=50,
        b=100,
        t=100,
        pad=4
    )
)

fig = go.Figure(data=data, layout=layout)

# Plot and embed in ipython notebook!
iplot(fig,show_link=False)
In [29]:
# matplotlib graph
import matplotlib.pyplot as plt
# change graph size
plt.figure(figsize=(20,10))
plt.plot(random_x, random_y)
plt.show()